package com.yidu.best.bond.bondTrading.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yidu.best.bond.bondTrading.service.BondTradeService;
@Controller
@RequestMapping("/Bond/")
public class BondClearingController {

	@Autowired
	private BondTradeService bondTradingService;


	@RequestMapping(value = "getBondClearing", method = RequestMethod.GET)
	public String getBondTrading() {
		return "bond/bond/bondClearing";
	}

	@ResponseBody
	@RequestMapping(value = "BondCleareing", method = RequestMethod.PUT)
	public Boolean BondClearing(String bondTradeId ,  String tradeStatus) {
		return bondTradingService.BondClearing(bondTradeId,tradeStatus);
		
	}
	

	
	
	
}
